<template>
  <div class="homepage">
    <Header />
    
    <!-- 内容库容器 -->
    <div class="content-library">
      <h2 class="library-title">我的内容库</h2>
      
      <div class="content-grid">
        <!-- 前三个大块内容 -->
        <div class="content-item large bg1">
          <div class="content-header">
            <h3 class="content-title">{{ largeItems[0].title }}</h3>
            <img src="@/assets/images/home/right.png" alt="箭头" class="right-arrow" />
          </div>
          
          <div class="content-description">
            {{ largeItems[0].description }}
          </div>
          
          <div class="content-footer">
            <button class="create-btn">开始创建</button>
          </div>
        </div>
        
        <div class="content-item large bg2">
          <div class="content-header">
            <h3 class="content-title">{{ largeItems[1].title }}</h3>
            <img src="@/assets/images/home/right.png" alt="箭头" class="right-arrow" />
          </div>
          
          <div class="content-description">
            {{ largeItems[1].description }}
          </div>
          
          <div class="content-footer">
            <button class="create-btn">开始创建</button>
          </div>
        </div>
        
        <div class="content-item large bg3">
          <div class="content-header">
            <h3 class="content-title">{{ largeItems[2].title }}</h3>
            <img src="@/assets/images/home/right.png" alt="箭头" class="right-arrow" />
          </div>
          
          <div class="content-description">
            {{ largeItems[2].description }}
          </div>
          
          <div class="content-footer">
            <button class="create-btn">开始创建</button>
          </div>
        </div>
        
        <!-- 第四第五个共用一个块，上下分布 -->
        <div class="content-item combined">
          <!-- 第四个小块 - 上半部分 -->
          <div class="small-content bg4">
            <div class="small-content-header">
              <h4 class="small-title">{{ smallItems[0].title }}</h4>
              <img src="@/assets/images/home/right.png" alt="箭头" class="small-right-arrow" />
            </div>
            
            <div class="small-content-description">
              {{ smallItems[0].description }}
            </div>
          </div>
          
          <!-- 第五个小块 - 下半部分 -->
          <div class="small-content bg5">
            <div class="small-content-header">
              <h4 class="small-title">{{ smallItems[1].title }}</h4>
              <img src="@/assets/images/home/right.png" alt="箭头" class="small-right-arrow" />
            </div>
            
            <div class="small-content-description">
              {{ smallItems[1].description }}
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 第二个板块 -->
    <div class="second-section">
      <!-- 导航栏 -->
      <div class="nav-bar">
        <div 
          v-for="(item, index) in navItems" 
          :key="index"
          :class="['nav-item', { active: activeNavItem === index }]"
          @click="setActiveNavItem(index)"
        >
          {{ item }}
        </div>
      </div>
      
      <!-- 主要内容区域 -->
      <div class="main-content-area">
        <!-- 搜索区域 -->
        <div class="search-area">
          <span class="search-label">搜索：</span>
          <div class="search-input-container">
            <input type="text" placeholder="根据标题搜索" class="search-input" />
          </div>
          <div class="search-btn-container">
            <img src="@/assets/images/home/search.png" alt="搜索" class="search-icon" />
            <span class="search-text">搜索</span>
          </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="content-area">
          <!-- 左侧分类区域 -->
          <div class="left-panel">
            <h3 class="category-title">全部内容</h3>
            <div class="category-list">
              <div class="category-item" v-for="(item, index) in categoryItems" :key="index">
                <img src="@/assets/images/home/r1.png" alt="箭头" class="category-arrow" />
                <span class="category-name">{{ item.name }}</span>
                <span class="category-count">{{ item.count }}</span>
              </div>
            </div>
            <div class="folder-section">
              <div class="folder-item">
                <span class="folder-text">文件夹</span>
              </div>
              <div class="manage-item" @click="showCategoryModal">
                <img src="@/assets/images/home/tx.png" alt="图标" class="manage-icon" />
                <span class="manage-text">管理</span>
              </div>
            </div>
          </div>
          
          <!-- 右侧内容区域 -->
          <div class="right-panel">
            <!-- 操作栏 -->
            <div class="action-bar">
              <div class="action-left">
                <input type="checkbox" class="select-all" />
                <select class="sort-dropdown">
                  <option>按时间排序</option>
                  <option>按名称排序</option>
                </select>
              </div>
              <div class="action-right">
                <div class="action-btn">
                  <img src="@/assets/images/home/delete.png" alt="删除" class="action-icon" />
                  <span>删除</span>
                </div>
                <div class="action-btn">
                  <img src="@/assets/images/home/qx.png" alt="取消" class="action-icon" />
                  <span>取消</span>
                </div>
              </div>
            </div>
            
            <!-- 内容网格 - 我的示意图 -->
            <div class="content-grid" v-if="activeNavItem === 0">
              <div 
                class="content-card" 
                :class="`card-${item.image}`"
                v-for="(item, index) in contentCards" 
                :key="index"
              >
                <h4 class="card-title">{{ item.title }}</h4>
                <p class="card-date">创建时间：{{ item.date }}</p>
                <div class="card-image"></div>
                <div class="card-actions">
                  <div class="card-left">
                    <input type="checkbox" class="card-checkbox" />
                    <span class="delete-text">删除</span>
                  </div>
                  <div class="card-right">
                    <img src="@/assets/images/home/tx.png" alt="修改" class="modify-icon" />
                    <span class="modify-text">修改</span>
                  </div>
                </div>
              </div>
            </div>
            
            <!-- 内容网格 - 我的教案 -->
            <div class="content-grid" v-if="activeNavItem === 2">
              <div 
                class="content-card" 
                :class="`card-${item.image}`"
                v-for="(item, index) in lessonPlans" 
                :key="index"
              >
                <h4 class="card-title">{{ item.title }}</h4>
                <p class="card-date">创建时间：{{ item.date }}</p>
                <div class="card-image"></div>
                <div class="card-actions">
                  <div class="card-left">
                    <input type="checkbox" class="card-checkbox" />
                    <span class="delete-text">删除</span>
                  </div>
                  <div class="card-right">
                    <img src="@/assets/images/home/tx.png" alt="修改" class="modify-icon" />
                    <span class="modify-text">修改</span>
                  </div>
                </div>
              </div>
            </div>
            
            <!-- 内容网格 - 我的思维导图 -->
            <div class="content-grid" v-if="activeNavItem === 4">
              <div 
                class="content-card" 
                :class="`card-${item.image}`"
                v-for="(item, index) in mindMaps" 
                :key="index"
              >
                <h4 class="card-title">{{ item.title }}</h4>
                <p class="card-date">创建时间：{{ item.date }}</p>
                <div class="card-image"></div>
                <div class="card-actions">
                  <div class="card-left">
                    <input type="checkbox" class="card-checkbox" />
                    <span class="delete-text">删除</span>
                  </div>
                  <div class="card-right">
                    <img src="@/assets/images/home/tx.png" alt="修改" class="modify-icon" />
                    <span class="modify-text">修改</span>
                  </div>
                </div>
              </div>
            </div>
            
            <!-- 训练项列表（第二项） -->
            <div class="training-list" v-if="activeNavItem === 1">
              <div 
                class="training-item" 
                :class="{ 'selected': item.selected }"
                v-for="(item, index) in trainingItems" 
                :key="index"
                @click="toggleTrainingItem(index)"
              >
                <div class="training-content">
                  <div class="training-left">
                    <input 
                      type="checkbox" 
                      class="training-checkbox" 
                      :checked="item.selected"
                      @click.stop
                    />
                    <img src="@/assets/images/home/bg.png" alt="训练项图片" class="training-image" />
                    <div class="training-text">
                      <h4 class="training-title">{{ item.title }}</h4>
                      <p class="training-date">创建时间：{{ item.date }}</p>
                    </div>
                  </div>
                  <div class="training-right">
                    <div class="training-action">
                      <img src="@/assets/images/home/tx.png" alt="修改" class="action-icon" />
                      <span class="action-text">修改</span>
                    </div>
                    <div class="training-action">
                      <img src="@/assets/images/home/shou.png" alt="删除" class="action-icon" />
                      <span class="action-text">删除</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            
            <!-- 其他信息列表（第六项） -->
            <div class="training-list" v-if="activeNavItem === 5">
              <div 
                class="training-item" 
                :class="{ 'selected': item.selected }"
                v-for="(item, index) in otherInfo" 
                :key="index"
                @click="toggleOtherInfo(index)"
              >
                <div class="training-content">
                  <div class="training-left">
                    <input 
                      type="checkbox" 
                      class="training-checkbox" 
                      :checked="item.selected"
                      @click.stop
                    />
                    <img src="@/assets/images/home/bg.png" alt="其他信息图片" class="training-image" />
                    <div class="training-text">
                      <h4 class="training-title">{{ item.title }}</h4>
                      <p class="training-date">创建时间：{{ item.date }}</p>
                    </div>
                  </div>
                  <div class="training-right">
                    <div class="training-action">
                      <img src="@/assets/images/home/tx.png" alt="修改" class="action-icon" />
                      <span class="action-text">修改</span>
                    </div>
                    <div class="training-action">
                      <img src="@/assets/images/home/shou.png" alt="删除" class="action-icon" />
                      <span class="action-text">删除</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 版权信息 -->
      <div class="copyright">
        <p>Copyright © 2012-2025 lnc. ALL Rights Reserved   京ICP备13027243号   客服热线：400-838-5616</p>
      </div>
    </div>
    
    <!-- 分类管理弹窗 -->
    <CategoryModal v-if="isCategoryModalVisible" @close="hideCategoryModal" />
  </div>
</template>

<script setup>
import Header from '@/components/Header.vue'
import CategoryModal from '@/components/CategoryModal.vue'
import { ref } from 'vue'

// 前三个大块内容数据
const largeItems = ref([
  {
    title: '创建示意图',
    description: '使用可视化图形工具创建训练示意图/动画'
  },
  {
    title: '创建训练项', 
    description: '结合示意图来创建教案中的单项训练环节'
  },
  {
    title: '创建教案',
    description: '将多个训练项目组合成一堂完整的主题训练教案'
  }
])

// 第四第五个小块内容数据
const smallItems = ref([
  {
    title: '创建思维导图',
    description: '制作训练大纲，通过中心主题辐射分支，梳理思路，提升效率。支持添加图片和视频。'
  },
  {
    title: '创建其他',
    description: '自由编写训练相关内容，支持发布文章、视频'
  }
])

// 导航栏数据
const navItems = ref(['我的示意图', '我的训练项', '我的教案', '我的专题', '我的思维导图', '其他信息'])
const activeNavItem = ref(0)

// 分类数据
const categoryItems = ref([
  { name: '未分组内容', count: 5 },
  { name: '草稿箱', count: 2 }
])

// 内容卡片数据
const contentCards = ref([
  { title: '训练示意图1', date: '2025.09.19', image: 'bg' },
  { title: '训练示意图2', date: '2025.09.18', image: 'bg' },
  { title: '训练示意图3', date: '2025.09.17', image: 'bg' },
  { title: '训练示意图4', date: '2025.09.16', image: 'bg' }
])

// 训练项数据（第二项的内容）
const trainingItems = ref([
  { title: '训练项目1', date: '2025.09.19', selected: false },
  { title: '训练项目2', date: '2025.09.18', selected: false }
])

// 教案数据（第三项的内容）
const lessonPlans = ref([
  { title: '教案设计1', date: '2025.09.19', image: 'bg' },
  { title: '教案设计2', date: '2025.09.18', image: 'bg' },
  { title: '教案设计3', date: '2025.09.17', image: 'bg' },
  { title: '教案设计4', date: '2025.09.16', image: 'bg' }
])

// 思维导图数据（第五项的内容）
const mindMaps = ref([
  { title: '思维导图1', date: '2025.09.19', image: 'bg' },
  { title: '思维导图2', date: '2025.09.18', image: 'bg' },
  { title: '思维导图3', date: '2025.09.17', image: 'bg' },
  { title: '思维导图4', date: '2025.09.16', image: 'bg' }
])

// 其他信息数据（第六项的内容）
const otherInfo = ref([
  { title: '其他信息1', date: '2025.09.19', selected: false },
  { title: '其他信息2', date: '2025.09.18', selected: false },
  
])

// 设置活动导航项
const setActiveNavItem = (index) => {
  activeNavItem.value = index
}

// 切换训练项选中状态
const toggleTrainingItem = (index) => {
  trainingItems.value[index].selected = !trainingItems.value[index].selected
}

// 切换其他信息选中状态
const toggleOtherInfo = (index) => {
  otherInfo.value[index].selected = !otherInfo.value[index].selected
}

// 分类管理弹窗状态
const isCategoryModalVisible = ref(false)

// 显示分类管理弹窗
const showCategoryModal = () => {
  isCategoryModalVisible.value = true
}

// 隐藏分类管理弹窗
const hideCategoryModal = () => {
  isCategoryModalVisible.value = false
}
</script>

<style lang="scss" scoped>
.homepage {
  width: 100%;
  min-height: 100vh;
  background: #F8FAFC;
}

.content-library {
  width: 100%;
  height: 427px;
  background: linear-gradient(180deg, #DFEBFA 0%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 43px;
  box-sizing: border-box;
  

}

.library-title {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 500;
  font-size: 30px;
  color: #313030;
  margin: 0 1210px 25px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 353px) 353px;
  grid-template-rows: 272px;
  gap: 5px;
  width: fit-content;
}

.content-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  
  &.large {
    padding: 50px 41px 35px 50px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    // justify-content: space-between;
  }
  
  &.small {
    padding: 34px 29px 33px 36px;
    display: flex;
    flex-direction: column;
    // justify-content: space-between;
  }
  
  &.combined {
    width: 353px;
    height: 272px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }
  
  // 背景图片类
  &.bg1 {
    background-image: url('@/assets/images/home/bg1.png');
  }
  
  &.bg2 {
    background-image: url('@/assets/images/home/bg2.png');
  }
  
  &.bg3 {
    background-image: url('@/assets/images/home/bg3.png');
  }
  
  &.bg4 {
    background-image: url('@/assets/images/home/bg4.png');
  }
  
  &.bg5 {
    background-image: url('@/assets/images/home/bg5.png');
  }
}

.small-content {
  width: 100%;
  height: 136px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 34px 29px 33px 36px;
  display: flex;
  flex-direction: column;
  // justify-content: space-between;
  position: relative;
  
  &.bg4 {
    background-image: url('@/assets/images/home/bg4.png');
  }
  
  &.bg5 {
    background-image: url('@/assets/images/home/bg5.png');
  }

  .small-content-description{
    font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 14px;
color: #FFFFFF;
  }
}

// 大块内容样式
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.content-title {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 500;
  font-size: 28px;
  color: #FFFFFF;
  margin: 0;
}

.right-arrow {
  width: 31px;
  height: 15px;
}

.content-description {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #FFFFFF;
  line-height: 23px;
  max-width: 265px;
  margin-bottom: auto;
  margin-top: 10px;
}

.content-footer {
  margin-top: auto;
}

.create-btn {
  width: 121px;
  height: 39px;
  border-radius: 20px;
  border: 1px solid #FFFFFF;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  
  
}

// 小块内容样式
.small-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  // margin-bottom: 15px;
}

.small-title {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 500;
  font-size: 22px;
  color: #FFFFFF;
  margin: 0;
}

.small-right-arrow {
  width: 31px;
  height: 15px;
}

// 第二个板块样式
.second-section {
  width: 100%;
  height: 770px;
  background: #E4ECF9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 31px;
  box-sizing: border-box;
}

// 导航栏
.nav-bar {
  width: 100%;
  padding: 0 368px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.nav-item {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 500;
  font-size: 24px;
  color: #999999;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  
  &.active {
    color: #EC6C00;
    
    &::after {
      content: '';
      position: absolute;
      bottom: -11px;
      left: 50%;
      transform: translateX(-50%);
      width: 64px;
      height: 6px;
      background: #EC6C00;
      border-radius: 3px;
    }
  }
  
  &:hover:not(.active) {
    color: #EC6C00;
  }
}

// 主要内容区域
.main-content-area {
  width: 1400px;
  height: 598px;
  background: #FFFFFF;
  box-shadow: 0px 0px 16px 2px #DAE8FF;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

// 搜索区域
.search-area {
  width: 100%;
  height: 114px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 20px;
}

.search-label {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #464646;
}

.search-input-container {
  width: 392px;
  height: 52px;
  background: #D9E3F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding-left: 23px;
}

.search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #464646;
  
  &::placeholder {
    color: #999999;
  }
}

.search-btn-container {
  width: 118px;
  height: 52px;
  background: #D9E3F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: background 0.3s ease;
  
  &:hover {
    background: #C7D1E0;
  }
}

.search-icon {
  width: 19px;
  height: 19px;
}

.search-text {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #464646;
}

// 内容区域
.content-area {
  flex: 1;
  display: flex;

  padding: 0 22px 0 27px;
  gap: 20px;
}

// 左侧面板
.left-panel {
  width: 292px;
  height: 400px;
  background: #F6F9FD;
  display: flex;
  flex-direction: column;
  // padding: 28px 0 0 34px;
  margin-top: 30px;
}

.category-title {
    font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
    font-size: 24px;
  color: #464646;
  margin: 28px 0 32px 34px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: auto;
  padding: 0 10px 0 10px;
  box-sizing: border-box;
}

.category-item {
  width: 272px;
  height: 46px;
  background: #D9E3F2;
  border-radius: 23px;
  display: flex;
  align-items: center;
  padding: 0 28px 0 20px;
  justify-content: space-between;
}

.category-arrow {
  width: 4px;
  height: 7px;
  margin-right: 11px;
}

.category-name {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 16px;
  color: #464646;
  flex: 1;
}

.category-count {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 16px;
  color: #464646;
}

.folder-section {
  width: 100%;
  height: 40px;
  display: flex;
  margin-top: auto;
}

.folder-item {
  flex: 2;
  background: #DDE6F3;
  display: flex;
  align-items: center;
  padding-left: 27px;
}

.folder-text {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 16px;
  color: #464646;
}

.manage-item {
  flex: 1;
  background: #BAD3F8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  transition: background 0.3s ease;
  
  &:hover {
    background: #A8C7F0;
  }
}

.manage-icon {
  width: 17px;
  height: 15px;
}

.manage-text {
    font-family: 'Alibaba PuHuiTi';
    font-weight: 400;
    font-size: 16px;
  color: #464646;
}

// 右侧面板
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

// 操作栏
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 17px;
}

.select-all {
  width: 16px;
  height: 16px;
  accent-color: #FE620B;
}

.sort-dropdown {
  width: 170px;
  height: 37px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #D9E3F2;
  padding: 0 15px 0 19px;
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 14px;
  color: #464646;
  outline: none;
}

.action-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 16px;
color: #000000;
}

.action-btn {
  width: 95px;
  height: 37px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #D9E3F2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  transition: background 0.3s ease;
  
  &:hover {
    background: #F6F9FD;
  }
}

.action-icon {
  width: 10px;
  height: 10px;
}

// 内容网格
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  padding-top: 25px;
}

.content-card {
  width: 248px;
  height: 293px;
  background: #E4ECF9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.card-title {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #000000;
  margin: 0 0 10px 0;
}

.card-date {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 14px;
  color: #464646;
  margin: 0 0 10px 0;
}

.card-image {
  width: 233px;
  height: 172px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  margin-bottom: 10px;
}

// 卡片背景图片类
.card-bg .card-image {
  background-image: url('@/assets/images/home/bg.png');
}

.card-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #FE620B;
}

.delete-text {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 14px;
  color: #000000;
}

.card-right {
  width: 79px;
  height: 28px;
  background: #C7D1E0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  
  &:hover {
    background: #B8C4D1;
  }
}

.modify-icon {
  width: 15px;
  height: 15px;
}

.modify-text {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 14px;
  color: #464646;
}

// 训练项列表样式
.training-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  flex: 1;
  padding-top: 25px;
}

.training-item {
  width: 100%;
  height: 132px;
  background: #E4ECF9;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  padding: 0 31px 0 16px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.3s ease;
  
  &.selected {
    border: 1px solid #FE620B;
  }
}

.training-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.training-left {
  display: flex;
  align-items: center;
  gap: 17px;
}

.training-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #FE620B;
}

.training-image {
  width: 175px;
  height: 103px;
  object-fit: cover;
  border-radius: 4px;
}

.training-text {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.training-title {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 18px;
  color: #000000;
  margin: 0;
}

.training-date {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  margin: 0;
}

.training-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.training-action {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  
  &:hover {
    opacity: 0.7;
  }
}

.action-icon {
  width: 15px;
  height: 15px;
}

.action-text {
  font-family: 'Alibaba PuHuiTi';
  font-weight: 400;
  font-size: 16px;
  color: #000000;
}

// 版权信息
.copyright {
  width: 100%;
  text-align: center;
  padding: 30px 0 25px 0;
  
  p {
    font-family: 'Alibaba PuHuiTi';
    font-weight: 400;
    font-size: 14px;
    color: #464646;
    margin: 0;
  }
}
</style>
